package com.chujian.jpush;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class JpushServlet
 */
@WebServlet("/JpushServlet")
public class JpushServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
	private static final String appKey ="17e2e065f27bc8c5332c3f5a";  
	private static final String masterSecret = "0fb5db6368cb464ae31c98ac";
	
	
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public JpushServlet() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		 Jdpush.testSendPush();  
	    System.out.println("sucess");  
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		this.doGet(request, response);
	}

}
